From: Alexander Larsson Date: Mon, 28 Nov 2016 14:56:50 +0000 (+0100) Subject: pull_with_options: Don't leak csum_v X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~42^2~51 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=239cb1494fcb99f963e1d5f7939b8b1a63cf9798;p=ostree.git pull_with_options: Don't leak csum_v Closes: #596 Approved by: cgwalters --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index 6f32c77b..303daec4 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -2800,7 +2800,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, for (i = 0; i < n; i++) { const char *delta; - GVariant *csum_v = NULL; + g_autoptr(GVariant) csum_v = NULL; guchar *csum_data = g_malloc (OSTREE_SHA256_DIGEST_LEN); g_autoptr(GVariant) ref = g_variant_get_child_value (deltas, i);